.class public Lcom/instagram/android/directshare/widget/k;
.super Ljava/lang/Object;
.source "DirectShareUserRowViewBinder.java"


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 66
    return-void
.end method


# virtual methods
.method public a(Landroid/content/Context;)Landroid/view/View;
    .locals 3
    .parameter

    .prologue
    .line 49
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->directshare_row_user:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 50
    new-instance v2, Lcom/instagram/android/directshare/widget/l;

    invoke-direct {v2, p0}, Lcom/instagram/android/directshare/widget/l;-><init>(Lcom/instagram/android/directshare/widget/k;)V

    .line 51
    sget v0, Lcom/facebook/aw;->row_user_imageview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/mediacache/CircularImageView;

    iput-object v0, v2, Lcom/instagram/android/directshare/widget/l;->a:Lcom/instagram/android/mediacache/CircularImageView;

    .line 52
    sget v0, Lcom/facebook/aw;->row_user_fullname:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/widget/l;->b:Landroid/widget/TextView;

    .line 53
    sget v0, Lcom/facebook/aw;->row_user_username:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v2, Lcom/instagram/android/directshare/widget/l;->c:Landroid/widget/TextView;

    .line 54
    sget v0, Lcom/facebook/aw;->recipient_toggle:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, v2, Lcom/instagram/android/directshare/widget/l;->d:Landroid/widget/CheckBox;

    .line 55
    sget v0, Lcom/facebook/aw;->user_row_background:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v2, Lcom/instagram/android/directshare/widget/l;->e:Landroid/view/View;

    .line 56
    invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    .line 57
    return-object v1
.end method

.method public a(Landroid/content/Context;Ljava/lang/String;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 61
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->directshare_row_header:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    .line 62
    sget v0, Lcom/facebook/aw;->directshare_header:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 63
    return-object v1
.end method

.method public a(Lcom/instagram/android/directshare/widget/l;Lcom/instagram/android/model/b/e;Lcom/instagram/pendingmedia/model/c;Z)V
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 21
    iget-object v0, p1, Lcom/instagram/android/directshare/widget/l;->a:Lcom/instagram/android/mediacache/CircularImageView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->j()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Lcom/instagram/android/mediacache/CircularImageView;->setUrl(Ljava/lang/String;)V

    .line 23
    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->w()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v0

    .line 24
    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/instagram/n/i;->a(Ljava/lang/CharSequence;)Z

    move-result v2

    .line 25
    if-eqz v0, :cond_0

    if-eqz v2, :cond_0

    const/4 v0, 0x1

    .line 26
    :goto_0
    if-eqz v0, :cond_1

    .line 27
    iget-object v0, p1, Lcom/instagram/android/directshare/widget/l;->b:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    .line 37
    :goto_1
    iget-object v0, p1, Lcom/instagram/android/directshare/widget/l;->c:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->f()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 39
    iget-object v0, p1, Lcom/instagram/android/directshare/widget/l;->d:Landroid/widget/CheckBox;

    invoke-virtual {p3}, Lcom/instagram/pendingmedia/model/c;->L()Lcom/instagram/pendingmedia/model/h;

    move-result-object v1

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->k()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/instagram/pendingmedia/model/h;->a(Ljava/lang/String;)Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 41
    iget-object v1, p1, Lcom/instagram/android/directshare/widget/l;->e:Landroid/view/View;

    if-eqz p4, :cond_3

    sget v0, Lcom/facebook/av;->ds_input_bottom_default:I

    :goto_2
    invoke-virtual {v1, v0}, Landroid/view/View;->setBackgroundResource(I)V

    .line 46
    return-void

    :cond_0
    move v0, v1

    .line 25
    goto :goto_0

    .line 29
    :cond_1
    if-eqz v2, :cond_2

    .line 30
    iget-object v0, p1, Lcom/instagram/android/directshare/widget/l;->b:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->w()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 34
    :goto_3
    iget-object v0, p1, Lcom/instagram/android/directshare/widget/l;->b:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_1

    .line 32
    :cond_2
    iget-object v0, p1, Lcom/instagram/android/directshare/widget/l;->b:Landroid/widget/TextView;

    invoke-virtual {p2}, Lcom/instagram/android/model/b/e;->g()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_3

    .line 41
    :cond_3
    sget v0, Lcom/facebook/av;->ds_input_middle_default_light:I

    goto :goto_2
.end method
